import request from '@/utils/request'

// 查询材料进出库申请列表
export function listMaterialInOut(query) {
  return request({
    url: '/business/materialInOut/list',
    method: 'get',
    params: query
  })
}

// 查询材料进出库申请详细
export function getMaterialInOut(id) {
  return request({
    url: '/business/materialInOut/' + id,
    method: 'get'
  })
}

// 新增材料进出库申请
export function addMaterialInOut(data) {
  return request({
    url: '/business/materialInOut',
    method: 'post',
    data: data
  })
}

// 修改材料进出库申请
export function updateMaterialInOut(data) {
  return request({
    url: '/business/materialInOut',
    method: 'put',
    data: data
  })
}

// 删除材料进出库申请
export function delMaterialInOut(id) {
  return request({
    url: '/business/materialInOut/' + id,
    method: 'delete'
  })
}
